import http from '@/utils/http';

export default {
  namespaced: true,
  state: {
    phone: '',
  },
  mutations: {
    userPhone(s, v) {
      const state = s;
      state.phone = v;
    },
  },
  actions: {

    // 用户注册
    usersRegister(context, data) {
      return http.post(`/auth/signin?${data}`);
    },
    // 用户登录
    usersLogin(context, data) {
      return http.post(`/auth/login?${data}`);
    },
  },
};
